package com.strong.faker;

import cn.hutool.core.util.RandomUtil;

public class CommonFaker {

    /**
     * 获取港澳通信证号码
     *
     * @return {@link String }
     */
    public static String randomHongKongOrMacaoPermitId() {
        return (RandomUtil.randomBoolean() ? "M" : "H") + RandomUtil.randomString("0123456789", 8);
    }

    /**
     * 台胞证号码
     *
     * @return {@link String }
     */
    public static String randomTaiWanPermitId() {
        return (RandomUtil.randomString("0123456789", 10));
    }

    /**
     * 外国护照号码
     *
     * @return {@link String }
     */
    public static String randomForeignPassportId() {
        return RandomUtil.randomString(RandomUtil.randomInt(8, 16));
    }

}
